This allows dependency resolution to handle soname changes (e.g. gpgme
1.x to 2.x) instead of silently installing mismatched libraries.
FROM $base as rootfs
COPY --from=rpmbuild /rpms/*.rpm /tmp/rpms/
RUN ls /tmp/rpms/ && \
- rpm -Uvh --oldpackage $(ls /tmp/rpms/ostree-*.rpm | grep -v -e devel -e debug) && \
+ dnf -y install --allowerasing $(ls /tmp/rpms/ostree-*.rpm | grep -v -e devel -e debug) && \
rm -rf /tmp/rpms
# The default final container, with also a regenerated